import React from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';

import Login from './containers/login';
import Home from './containers/home';


const routes = (
    <Switch>
        <Route path="/login" component={Login}/>
        <Redirect exact from="/" to="/login"></Redirect>
        <Route path="/index" component={Home}/>
    </Switch>
);

export default routes;